<?php
App::uses('AppModel', 'Model');
/**
 * Task Model
 *
 * @property TasksType $TasksType
 * @property Exam $Exam
 */
class Task extends AppModel {

/**
 * Display field
 *
 * @var string
 */
	public $displayField = 'content';


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'TasksType' => array(
			'className' => 'TasksType',
			'foreignKey' => 'tasks_type_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/**
 * hasAndBelongsToMany associations
 *
 * @var array
 */
	public $hasAndBelongsToMany = array(
		'Exam' => array(
			'className' => 'Exam',
			'joinTable' => 'exams_tasks',
			'foreignKey' => 'task_id',
			'associationForeignKey' => 'exam_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
		)
	);

}
